package test;

import java.util.Random;

public class _01_For {
    public static void main(String[] args) {
        //（2）：创建对象
        Random r = new Random();
        //（3）获取随机数
        int number=r.nextInt(2);

        System.out.println(number);
    }
}
